/**
 * Created with IntelliJ IDEA.
 * User: olgak
 * Date: 6.5.2013
 * Time: 18:19
 * To change this template use File | Settings | File Templates.
 */



$(document).ready(function(){
    selected();
});

var tum = 0;
if(tum != 1){
    function selected(){

        $("p").empty();
        var temp = [];

        var hopurid = document.getElementById("select1").value;
        for(var k in arr){
            if(hopurid == arr[k].hopurId){
                temp.push(arr[k]);
            }
        }
        for(var i in temp){
            $("p").append('<tr><td><input type="checkbox" unchecked name="nemendur" value="'+temp[i].notandiId+'">' + temp[i].nafner + '</td></tr>');

        }


    }
}
else
{}

$(function() {
    $('#datetimepicker1').datetimepicker({
        language: 'pt-BR'
    });
});
$(function() {
    $('#datetimepicker2').datetimepicker({
        language: 'pt-BR'
    });
});
